home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / mail / readers / pine3.91- / pine3.91-LinuxELF.dif
Text File  |  1995-07-01  |  7KB  |  176 lines

  1. diff -ur pine3.91/imap/ANSI/c-client/Makefile pine3.91-LinuxELF/imap/ANSI/c-client/Makefile
  2. --- pine3.91/imap/ANSI/c-client/Makefile    Mon Oct 10 23:13:22 1994
  3. +++ pine3.91-LinuxELF/imap/ANSI/c-client/Makefile    Sat Jul  1 15:06:14 1995
  4. @@ -117,7 +117,8 @@
  5.  lnx:    # Linux
  6.      $(MAKE) mtest OS=$@ EXTRADRIVERS="$(EXTRADRIVERS)" \
  7.          STDPROTO=bezerkproto \
  8. -        RSHPATH=/usr/bin/rsh CFLAGS="-g -O $(EXTRACFLAGS)"
  9. +        RSHPATH=/usr/bin/rsh CFLAGS=" -O2 $(EXTRACFLAGS)"\
  10. +        LDFLAGS=" -lbsd"
  11.  
  12.  mct:    # MachTen
  13.      $(MAKE) mtest OS=$@ EXTRADRIVERS="$(EXTRADRIVERS)" \
  14. diff -ur pine3.91/imap/ANSI/c-client/mh.c pine3.91-LinuxELF/imap/ANSI/c-client/mh.c
  15. --- pine3.91/imap/ANSI/c-client/mh.c    Mon Oct 10 02:32:52 1994
  16. +++ pine3.91-LinuxELF/imap/ANSI/c-client/mh.c    Sat Jul  1 15:01:08 1995
  17. @@ -807,7 +807,7 @@
  18.    stat (LOCAL->dir,&sbuf);
  19.    if (sbuf.st_ctime != LOCAL->scantime) {
  20.      struct direct **names;
  21. -    long nfiles = scandir (LOCAL->dir,&names,mh_select,mh_numsort);
  22. +    long nfiles = scandir (LOCAL->dir,&names,(int (*)())mh_select,(int (*)())mh_numsort);
  23.      old = nmsgs ? mail_elt (stream,nmsgs)->data1 : 0;
  24.                  /* note scanned now */
  25.      LOCAL->scantime = sbuf.st_ctime;
  26. @@ -1048,7 +1048,7 @@
  27.      return NIL;
  28.    }
  29.    mh_file (tmp,mailbox);    /* build file name we will use */
  30. -  if (nfiles = scandir (tmp,&names,mh_select,mh_numsort)) {
  31. +  if (nfiles = scandir (tmp,&names,(int (*)())mh_select,(int (*)())mh_numsort)) {
  32.                  /* largest number */
  33.      last = atoi (names[nfiles-1]->d_name);    
  34.      for (i = 0; i < nfiles; ++i) /* free directory */
  35. diff -ur pine3.91/imap/ANSI/c-client/news.c pine3.91-LinuxELF/imap/ANSI/c-client/news.c
  36. --- pine3.91/imap/ANSI/c-client/news.c    Mon Oct 10 01:52:45 1994
  37. +++ pine3.91-LinuxELF/imap/ANSI/c-client/news.c    Sat Jul  1 15:01:08 1995
  38. @@ -310,7 +310,7 @@
  39.         stream->mailbox + 1);
  40.    while (s = strchr (s,'.')) *s = '/';
  41.                  /* scan directory */
  42. -  if ((nmsgs = scandir (tmp,&names,news_select,news_numsort)) >= 0) {
  43. +  if ((nmsgs = scandir (tmp,&names,(int (*)())news_select,(int (*)())news_numsort)) >= 0) {
  44.      stream->local = fs_get (sizeof (NEWSLOCAL));
  45.      LOCAL->dirty = NIL;        /* no update to .newsrc needed yet */
  46.      LOCAL->dir = cpystr (tmp);    /* copy directory name for later */
  47. diff -ur pine3.91/imap/ANSI/c-client/os_lnx.c pine3.91-LinuxELF/imap/ANSI/c-client/os_lnx.c
  48. --- pine3.91/imap/ANSI/c-client/os_lnx.c    Wed Aug 31 01:16:22 1994
  49. +++ pine3.91-LinuxELF/imap/ANSI/c-client/os_lnx.c    Sat Jul  1 15:01:09 1995
  50. @@ -45,7 +45,6 @@
  51.  #include <netdb.h>
  52.  #include <ctype.h>
  53.  #include <errno.h>
  54. -extern int errno;        /* just in case */
  55.  #include <pwd.h>
  56.  #include "misc.h"
  57.  extern char *crypt();
  58. diff -ur pine3.91/imap/non-ANSI/c-client/Makefile pine3.91-LinuxELF/imap/non-ANSI/c-client/Makefile
  59. --- pine3.91/imap/non-ANSI/c-client/Makefile    Mon Oct 10 23:13:22 1994
  60. +++ pine3.91-LinuxELF/imap/non-ANSI/c-client/Makefile    Sat Jul  1 15:01:09 1995
  61. @@ -117,7 +117,7 @@
  62.  lnx:    # Linux
  63.      $(MAKE) mtest OS=$@ EXTRADRIVERS="$(EXTRADRIVERS)" \
  64.          STDPROTO=bezerkproto \
  65. -        RSHPATH=/usr/bin/rsh CFLAGS="-g -O $(EXTRACFLAGS)"
  66. +        RSHPATH=/usr/bin/rsh CFLAGS=" -O2 $(EXTRACFLAGS)"
  67.  
  68.  mct:    # MachTen
  69.      $(MAKE) mtest OS=$@ EXTRADRIVERS="$(EXTRADRIVERS)" \
  70. diff -ur pine3.91/imap/non-ANSI/imapd/Makefile pine3.91-LinuxELF/imap/non-ANSI/imapd/Makefile
  71. --- pine3.91/imap/non-ANSI/imapd/Makefile    Tue Oct 12 05:29:19 1993
  72. +++ pine3.91-LinuxELF/imap/non-ANSI/imapd/Makefile    Sat Jul  1 15:01:09 1995
  73. @@ -40,7 +40,7 @@
  74.  LDFLAGS = $(CCLIENTLIB) `cat $C/LDFLAGS`
  75.  
  76.  imapd: $(CCLIENTLIB) imapd.o
  77. -    $(CC) $(CFLAGS) -o imapd imapd.o $(LDFLAGS)
  78. +    $(CC) $(CFLAGS) -o imapd imapd.o $(LDFLAGS) -lbsd
  79.  
  80.  imapd.o: $C/mail.h $C/misc.h $C/osdep.h
  81.  
  82. diff -ur pine3.91/pico/makefile.lnx pine3.91-LinuxELF/pico/makefile.lnx
  83. --- pine3.91/pico/makefile.lnx    Tue Oct 11 21:57:36 1994
  84. +++ pine3.91-LinuxELF/pico/makefile.lnx    Sat Jul  1 15:01:09 1995
  85. @@ -40,18 +40,18 @@
  86.  #
  87.  
  88.  #includes symbol for debugging
  89. -DASHO=        -g
  90. +#DASHO=        -g
  91.  #for normal build
  92. -#DASHO=        -O2
  93. +DASHO=        -O2
  94.  
  95. -CFLAGS=         -Dbsd -DLINUX -DPOSIX -DJOB_CONTROL
  96. +CFLAGS=         -DLINUX -DPOSIX -DJOB_CONTROL
  97.  
  98.  # switches for library building
  99.  LIBCMD=        ar
  100.  LIBARGS=    ru
  101.  RANLIB=        ranlib
  102.  
  103. -LIBS=        -ltermcap
  104. +LIBS=        -ltermcap -lbsd
  105.  
  106.  OFILES=        attach.o ansi.o basic.o bind.o browse.o buffer.o \
  107.          composer.o display.o file.o fileio.o line.o osdep.o \
  108. diff -ur pine3.91/pico/os_unix.h pine3.91-LinuxELF/pico/os_unix.h
  109. --- pine3.91/pico/os_unix.h    Mon Oct 10 23:29:05 1994
  110. +++ pine3.91-LinuxELF/pico/os_unix.h    Sat Jul  1 15:01:09 1995
  111. @@ -161,9 +161,9 @@
  112.  extern struct KBSTREE *kpadseqs;
  113.  #endif    /* TERMCAP */
  114.  
  115. -#if    defined(bsd) || defined(nxt) || defined(dyn)
  116. +#if    defined(bsd) || defined(nxt) || defined(dyn) || defined(linux)
  117.  #ifdef    ANSI
  118. -extern char *getcwd(char *, int);
  119. +extern char *getcwd(char *, size_t);
  120.  #else
  121.  extern char *getcwd();
  122.  #endif
  123. diff -ur pine3.91/pine/makefile.lnx pine3.91-LinuxELF/pine/makefile.lnx
  124. --- pine3.91/pine/makefile.lnx    Tue Oct 11 22:24:30 1994
  125. +++ pine3.91-LinuxELF/pine/makefile.lnx    Sat Jul  1 15:01:09 1995
  126. @@ -57,14 +57,14 @@
  127.  RM=          rm -f
  128.  LN=          ln -s
  129.  MAKE=        make
  130. -OPTIMIZE=    # -O2
  131. +OPTIMIZE=     -O2
  132.  PROFILE=     # -pg
  133. -DEBUG=       -DDEBUG
  134. +DEBUG=       # -DDEBUG
  135.  
  136.  IMAPDIR=     ../c-client
  137.  PICODIR=     ../pico
  138.  
  139. -LIBES=       -ltermcap
  140. +LIBES=       -ltermcap -lbsd
  141.  LOCLIBES=    $(PICODIR)/libpico.a $(IMAPDIR)/c-client.a
  142.  
  143.  CFLAGS= -DLNX  -DSYSTYPE=\"LNX\" $(OPTIMIZE) $(PROFILE) $(DEBUG)
  144. diff -ur pine3.91/pine/osdep/os-lnx.h pine3.91-LinuxELF/pine/osdep/os-lnx.h
  145. --- pine3.91/pine/osdep/os-lnx.h    Tue Oct 11 22:52:00 1994
  146. +++ pine3.91-LinuxELF/pine/osdep/os-lnx.h    Sat Jul  1 15:01:09 1995
  147. @@ -132,8 +132,8 @@
  148.  
  149.  
  150.  /*----- System-wide config file ----------------------------------------*/
  151. -#define SYSTEM_PINERC             "/usr/local/lib/pine.conf"
  152. -#define SYSTEM_PINERC_FIXED       "/usr/local/lib/pine.conf.fixed"
  153. +#define SYSTEM_PINERC             "/usr/lib/pine.conf"
  154. +#define SYSTEM_PINERC_FIXED       "/usr/lib/pine.conf.fixed"
  155.  
  156.  
  157.  
  158. @@ -267,7 +267,7 @@
  159.  
  160.  
  161.  /*-- What argument does wait(2) take? Define this if it is a union -----*/
  162. -#define HAVE_WAIT_UNION  /* the arg to wait is a union wait * */
  163. +/* #define HAVE_WAIT_UNION  /* the arg to wait is a union wait * */
  164.  
  165.  
  166.  /*-------- Is window resizing available? -------------------------------*/
  167. @@ -325,7 +325,7 @@
  168.   investigated. Users tend to go in and out of Pine a few times and there
  169.   is one file for each pine invocation
  170.   ----*/
  171. -#define NUMDEBUGFILES 4
  172. +#define NUMDEBUGFILES 1
  173.  
  174.  /*----------------------------------------------------------------------
  175.     The default debug level to set (approximate meanings):
  176.